package ace.cmp.json.jackson.test.entity;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author caspar
 * @date 2023/2/13 10:10
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CasUser implements Serializable {

  private String id;
  private String name;
  private String mobile;
  @Builder.Default
  private Integer rowVersion = 0;
  @Builder.Default
  private LocalDateTime updateTime = LocalDateTime.now();
  private LocalDateTime createTime;

  private Boolean deleteFlag = true;
  private List<String> properties = new ArrayList<>();
}
